From b5c10257bb7f1610ef57d1ff1a5e2926930525cf Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 13 Jan 2013 20:38:16 +0000 Subject: [PATCH] Let V900 silently process 'G' tags as 'T' records when losing a DGPS fix. --- gpsbabel/v900.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gpsbabel/v900.c b/gpsbabel/v900.c index 7c894fcb7..405f084ed 100644 --- a/gpsbabel/v900.c +++ b/gpsbabel/v900.c @@ -357,7 +357,11 @@ v900_read(void) track_add_wpt(track, wpt); if (line.bas.common.tag != 'T') { waypoint *wpt2; - assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'V'); + // A 'G' tag appears to be a 'T' tag, but generated on the trailing + // edge of a DGPS fix as it decays to an SPS fix. See 1/13/13 email + // thread on gpsbabel-misc with Jamie Robertson. + assert(line.bas.common.tag == 'C' || line.bas.common.tag == 'G' || + line.bas.common.tag == 'V'); wpt2 = waypt_dupe(wpt); if (line.bas.common.tag == 'V') { // waypoint with voice recording? char vox_file_name[sizeof(line.adv.vox)+5]; -- 2.30.2